package net.xdclass.mapper;

import net.xdclass.enums.CouponStateEnum;
import net.xdclass.model.CouponRecordDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 孙浩
 * @since 2022-04-20
 */
public interface CouponRecordMapper extends BaseMapper<CouponRecordDO> {

  int lockUseStateBatch(@Param("userId") Long userId,@Param("useState") String useState,@Param("lockCouponRecordIds") List<Long> lockCouponRecordIds);

  int updateState(@Param("couponRecordId") Long couponRecordId,@Param("useState") String useState);
}
